/*
  1. amount  金额
  2. 
  3. personal 个人信息
  4. payMethod 支付方式
  5. pay-statistics 交易统计
*/
@import '../node_modules/ant-design-vue/es/style/themes/default.less';
#chart-card {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  & > div {
    padding: 0 15px 30px;
    // flex-grow: 1;
    width: 100%;
  }
  & > div > div {
    width: 100%;
    height: 100%;
    padding: 30px;
    border-radius: 5px;
    box-sizing: border-box;
  }
  // order 排列顺序 越小越靠前
  .amount {
    order: 1;
    & > div {
      background: linear-gradient(103.57deg, #0c2640 0%, #12375e 100%);
      display: flex;
      flex-direction: column;
      .amount-top {
        color: rgba(255, 255, 255, 0.6);
        min-width: 250px;
        .amount-date {
          width: auto;
          border-radius: 3px;
          overflow: hidden;
          display: inline-block;
          color: rgba(255, 255, 255, 0.7);
          margin-bottom: 50px;
          div {
            display: inline-block;
            background: rgba(0, 0, 0, 0.2);
            padding: 9px 20px;
            &:hover {
              cursor: pointer;
            }
          }
          .amount-date-active {
            background: var(--ant-primary-color);
            color: #fff;
          }
        }
        .amount-list {
          display: flex;
          flex-direction: row;
          justify-content: space-between;
          p {
            margin-bottom: 10px;
          }
          span {
            font-size: 20px;
            color: #fff;
          }
        }
      }
      .amount-line {
        width: 100%;
        height: 0;
        border-top: 1px solid rgba(255, 255, 255, 0.15);
        margin: 0 10px 0 20px;
      }
      #pay-amount {
        height: 200px;
      }
    }
  }
  .personal {
    order: 3;
    & > div {
      display: flex;
      flex-direction: column;
      background-color: #fff;
      .before-msg {
        font-weight: 400;
        font-size: 14px;
        text-align: left;
        color: #8f8f8f;
      }
      .personal-line {
        width: 100%;
        border-top: 1px solid #ebeff2;
        margin: 20px 0;
      }
      .latest-post {
        // min-width: 300px;
        .title {
          width: 100%;
          display: flex;
          justify-content: space-between;
          align-items: center;
          span {
            &:nth-child(1) {
              font-weight: bold;
              font-size: 14px;
              color: #000;
            }
            &:nth-child(2) {
              font-weight: 400;
              font-size: 13px;
            }
          }
        }
        .post-list {
          width: 100%;
          padding-top: 10px;
          // background-color: rgb(204, 191, 191);
          .post-item {
            display: flex;
            align-items: center;
            justify-content: space-between;
            margin-top: 15px;
            cursor: pointer;

            .title {
              display: block;
              width: 60%;
              overflow: hidden;
              text-overflow: ellipsis; //溢出用省略号显示
              white-space: nowrap;
              font-weight: 400;
              font-size: 13px;
              color: #575757;
            }
          }
        }
      }
    }
  }
  .method {
    order: 4;
    height: 530px;
    & > div {
      background-color: #fff;
      display: flex;
      flex-direction: column;
    }
  }
  .pay-statistics {
    order: 5;
    height: 530px;
    & > div {
      position: relative;
      background-color: #fff;
    }
  }
  .personal {
    order: 0;
  }
}

@media screen and (min-width: 1024px) {
  #chart-card {
    .personal {
      order: 0;
      width: 100%;
      & > div {
        display: flex;
        flex-direction: row;
        .personal-line {
          width: 0;
          height: 100%;
          border-left: 1px solid #ebeff2;
          margin: 0 20px;
        }
      }
    }
    .amount {
      width: 100%;
      & > div {
        flex-direction: row;
        .amount-line {
          width: 0;
          height: 100%;
          border-left: 1px solid rgba(255, 255, 255, 0.15);
          margin: 0 30px;
        }
        #pay-amount {
          height: 100%;
        }
      }
    }
    .method {
      width: calc(100% - 285px);
      flex-grow: 1;
    }
    .pay-statistics {
      width: 100%;
      height: 530px;
    }
  }
}
@media screen and (min-width: 1366px) {
  #chart-card {
    .personal {
      order: 0;
      width: 100%;
    }
    .amount {
      width: calc(100% - 265px);
      flex-grow: 1;
    }
    .method {
      width: 460px;
    }
    .pay-statistics {
      width: calc(100% - 460px);
      flex-grow: 1;
      height: 530px;
    }
  }
}
@media screen and (min-width: 1600px) {
  #chart-card {
    .amount {
      order: 1;
      width: calc(100% - 270px - 330px);
      flex-grow: 1;
    } // order 排列顺序 越小越靠前
    .personal {
      order: 3;
      width: 330px;
      & > div {
        display: flex;
        flex-direction: column;
        .personal-line {
          width: 100%;
          height: 0;
          border-top: 1px solid #ebeff2;
          margin: 20px 0;
        }
        .latest-post {
          .title {
            width: 100%;
            display: flex;
            justify-content: space-between;
          }
        }
      }
    }
    .method {
      width: 544px;
    }
    .pay-statistics {
      width: calc(100% - 544px);
      flex-grow: 1;
    }
  }
}
